package com.study.javaOther.chain.permission.condition;

import com.study.javaOther.chain.accoperation.DefaultOperation;
import com.study.javaOther.chain.accoperation.IACCOperation;

/**
 * @Name: MonocularPermission
 * @Description: 单目权限
 * @Author: yn
 * @CreateDate: 2022/4/14 16:12
 * @Remark: 特殊说明
 * @Version: 1.0
 */
public class MonocularCondition extends ICondition {

    public MonocularCondition(String left){
        super(left,new DefaultOperation());
    }

    private boolean verify(String right){
        return operation.match(this.left,right);
    }

    @Override
    public boolean verify() {
        return operation.match(this.left);
    }
}
